package demo;

/**
 * Created with IntelliJ IDEA
 * Description:懒汉模式创建（单例模式）--->要的时候才创建
 * User:34398
 * Date:2024-07-24
 * Time:11:24
 */


class SingleLazey{

    private static SingleLazey lazey=null;
    public static SingleLazey getLazey(){
        if(lazey==null){
            lazey=new SingleLazey();
        }
        return lazey;
    }

}
public class Lazey {
}
